﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Site
{
    public partial class ViewProgress : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //need to pass Session["userSession"] to SL
            
            if (Session["userUID"] == null)
            {
                Response.Redirect("Login.aspx");
            }
            else
            {
                this.prmInitParams.Attributes["value"] = "UID=" + Session["userUID"].ToString();
            }
        }

        protected void btnLogout_Click(object sender, EventArgs e)
        {
            Session.Clear();
            Response.Redirect("Login.aspx");
        }
    }
}